package com.chuangjiangx.member.manager.client.web.basic.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 登录时发送验证码所需参数
 * Created by YangKuo on 2017/11/16.
 */
@Getter
@Setter
@ApiModel(value = "登录时发送验证码所需参数")
public class SendCodeRequest {

    /**
     * 所属商户id（必传）
     */
    @ApiModelProperty(value = "所属商户id（必传）")
    @NotNull(message = "商户id不能为空")
    private Long merchantId;

    /**
     * 手机号码（必传）
     */
    @ApiModelProperty(value = "手机号码（必传）")
    @Length(min = 11, max = 11, message = "{mobilePhone.size}")
    @NotBlank(message = "{mobilePhone.null}")
    private String phone;
}
